from pkg.sqlalchemy import SQLAlchemy
from injector import Module, Binder
from extensions import db, migrate
from flask_migrate import Migrate


class ExtensionModule(Module):
    def configure(self, binder: Binder) -> None:
        binder.bind(SQLAlchemy, to=db)
        binder.bind(Migrate, to=db)
